package spms.data.entity;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Set;

import org.apache.ibatis.type.Alias;

/**
 * 菜单实体
 */

@Alias(value = "Menu")
public class Menu implements Serializable{

    /**
     */
    private static final long serialVersionUID = 8619179267136321869L;

    private String menuId;
    private String parentId;
    private String menuName;
    private String menuLevel;
    private String icon;
    private String url;
    private String remark;
    private Timestamp addTime;
    private Timestamp updateTime;
    private Integer order;
    private Set<Menu> submenu;

    public String getMenuId() {
        return menuId;
    }

    public void setMenuId(String menuId) {
        this.menuId = menuId;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public String getMenuLevel() {
        return menuLevel;
    }

    public void setMenuLevel(String menuLevel) {
        this.menuLevel = menuLevel;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Timestamp getAddTime() {
        return addTime;
    }

    public void setAddTime(Timestamp addTime) {
        this.addTime = addTime;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getOrder() {
        return order;
    }

    public void setOrder(Integer order) {
        this.order = order;
    }

    public Set<Menu> getSubmenu() {
        return submenu;
    }

    public void setSubmenu(Set<Menu> submenu) {
        this.submenu = submenu;
    }

    @Override
    public String toString() {
        return "Menu{" +
                "menuId='" + menuId + '\'' +
                ", parentId='" + parentId + '\'' +
                ", menuName='" + menuName + '\'' +
                ", menuLevel='" + menuLevel + '\'' +
                ", icon='" + icon + '\'' +
                ", url='" + url + '\'' +
                ", remark='" + remark + '\'' +
                ", addTime=" + addTime +
                ", updateTime=" + updateTime +
                ", order=" + order +
                ", submenu=" + submenu +
                '}';
    }
}